package file1;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Test4 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("test/test.txt")) {
            byte[] bytes = new byte[]{(byte) 'H', (byte) 'a', (byte) 'H', (byte) 'a'};
            outputStream.write(bytes);
            outputStream.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
